package ztest;

import java.util.UUID;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import top.xxyu.Application;
import top.xxyu.app.login.service.IUserService;
import top.xxyu.app.pojo.User;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = Application.class)
@WebAppConfiguration
public class BootTest {
	
	@Autowired
	private IUserService userService;
	
	
	@Test
	public void test1() {
//		User user = new User();
//		user.setUserId(UUID.randomUUID().toString());
//		user.setUserName("付晓瑜");
//		user.setUserPassword("1112345");
//		userService.insert(user);
		
//		User user = userService.selectByUserNameAndUserPassword("付晓瑜", "1");
//		System.out.println(user);

	}

	

}
